/**
 * 2017年5月18日
 */
package cn.edu.bjtu.net.startup;

import java.net.SocketAddress;

import org.jboss.netty.channel.ChannelHandler;
import org.jboss.netty.handler.codec.http.HttpRequestDecoder;
import org.jboss.netty.handler.codec.http.HttpResponseEncoder;

import cn.edu.bjtu.net.BaseServer;
import cn.edu.bjtu.net.MessaageHandler;
import cn.edu.bjtu.net.ServerHandler;

/**
 * @author Alex
 *
 */
public class SkipedWordCollectServer extends BaseServer{
	public MessaageHandler handler ;
	/**
	 * @param sa
	 */
	public SkipedWordCollectServer(SocketAddress sa) {
		super(sa);
		
	}

	@Override
	public ChannelHandler getIncommingMessageDecoder() {
		return new HttpRequestDecoder();
	}

	@Override
	public ChannelHandler getIncommingMessageEecoder() {
		return new HttpResponseEncoder();
	}

	@Override
	public MessaageHandler getMessageHandler() {
		handler = new ServerHandler();
		return handler;
	}

}
